home *** CD-ROM | disk | FTP | other *** search
- Path: octel.com!usenet
- From: simon.willcocks@octel.com (Simon Willcocks)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: Hungarian notation
- Date: 2 Jan 1996 11:00:48 GMT
- Organization: Octel C/SSD
- Message-ID: <4cb391$ecl@info.eng.octel.com>
- References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.sol <4behis$3cl@dux.dundee.ac.uk>
- NNTP-Posting-Host: 148.147.84.96
- X-Newsreader: WinVN 0.92.6+
-
- In article <4behis$3cl@dux.dundee.ac.uk>, pjclinch@dux.dundee.ac.uk (Pete Clinch) says:
- >
- >I don't *personally* find
- >fRunningTotal more unreadable than RunningTotal... if you do, you might
- >use running_total_f, or fiddle to suit you, or something else.
-
- The only problem with fRunningTotal is that you appear to be using
- a flag to contain some kind of number. :-)
-
- From "Writing Solid Code" by Steve Maguire in the section "What are
- those gobbledygook names?" (that's the only book description of the
- notation to hand):
-
- char ch; /* a plain old character */
- byte b; /* a byte, which is an unsigned char */
- flag f; /* flags that are always TRUE or FALSE */
- ...
-
- In this case I understood that the variable was a number from the
- name of the variable, not the hungarian bit; the name would have
- been CalculatingRunningTotal (or something) if it really was a flag.
-
- Simon Willcocks.
-